<div id="ContainAdmin">
	<div id="TitreAdmin"></div>
	<div id="LeftAdmin"><font class="TitleCompte">Envoi d'une newsletter:</font><br>
	<form action="index.php?page=envois2" method="get" enctype="multipart/form-data">
	<table width="415" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="88">&nbsp;</td>
    <td width="10">&nbsp;</td>
    <td width="317"><input type="hidden" name="page" value="envois2"></td>
  </tr>
	<?php
	$req=mysql_query("SELECT * FROM infos_news WHERE Stop='0' ORDER BY AnneeNews DESC, MoisNews DESC, JourNews DESC") or die (mysql_error());
	?>
	 <tr>
    <td width="88">Newsletter:</td>
    <td width="10">&nbsp;</td>
	<td width="317">
	<select name="idNews">
	<?php
	while($row=mysql_fetch_array($req)){
	$NomNews=$row['NomNews'];
	$idNews=$row['idNews'];
	?>
	  <option value="<?php echo $idNews; ?>"><?php echo $NomNews; ?></option>
	  <?php } ?>
    </select>
	</td>
</tr>
	<?php
	$reqL=mysql_query("SELECT * FROM listing ORDER BY Listing") or die (mysql_error());
	?>
	 <tr>
    <td width="88">Listing:</td>
    <td width="10">&nbsp;</td>
	<td width="317">
	<select name="idListing">
	<?php
	if(isset($_GET['idListing'])){
	$idListing=$_GET['idListing'];
	$recup4=mysql_query("SELECT * FROM listing WHERE idListing='$idListing'") or die(mysql_error());
	$data4=mysql_fetch_assoc($recup4);
	$NomListing=$data4['Listing'];
	?>
	 <option value="<?php echo $idListing; ?>"><?php echo $NomListing; ?></option>

	<?php 
	}
	while($row=mysql_fetch_array($reqL)){
	$NomListing=$row['Listing'];
	$idListing=$row['idListing'];
	?>
	  <option value="<?php echo $idListing; ?>"><?php echo $NomListing; ?></option>
	  <?php } ?>
    </select>
	</td>
</tr>
	 <tr>
	   <td width="88">&nbsp;</td>
	   <td width="10">&nbsp;</td>
	   <td><input type="image" src="./images/Suivant.jpg" name="Submit" value="Envoyer" class="Envoyer"></td>
	   </tr>
</table>
</form>
	</div>
	<div id="LeftAdmin"><font class="TitleCompte">Envoi test d'une newsletter:</font><br>
	<form action="index.php?page=envois2" method="get" enctype="multipart/form-data">
	<table width="415" border="0" cellspacing="0" cellpadding="0" class="EmailTest">
  <tr>
    <td width="88">&nbsp;</td>
    <td width="10">&nbsp;</td>
    <td width="317"><input type="hidden" name="page" value="envoisTest"></td>
  </tr>
	<?php
	$req=mysql_query("SELECT * FROM infos_news WHERE Stop='0' ORDER BY AnneeNews DESC, MoisNews DESC, JourNews DESC") or die (mysql_error());
	?>
	 <tr>
    <td width="88">Newsletter:</td>
    <td width="10">&nbsp;</td>
	<td width="317">
	<select name="idNews">
	<?php
	while($row=mysql_fetch_array($req)){
	$NomNews=$row['NomNews'];
	$idNews=$row['idNews'];
	?>
	  <option value="<?php echo $idNews; ?>"><?php echo $NomNews; ?></option>
	  <?php } ?>
    </select>
	</td>
</tr>
	 <tr>
	   <td width="88">&nbsp;</td>
	   <td width="10">&nbsp;</td>
	   <td style="padding:7px 0 0 0;">&nbsp;</td>
	   </tr>
	<?php
	$reqL=mysql_query("SELECT * FROM listing ORDER BY Listing") or die (mysql_error());
	?>
	 <tr>
	   <td width="88">&nbsp;</td>
	   <td width="10">&nbsp;</td>
	   <td><input type="image" src="./images/Suivant.jpg" name="Submit" value="Envoyer" class="Envoyer"></td>
	   </tr>
</table>
</form>
	</div>
	<div class="clr"></div>
</div>